package top.continew.admin.generator.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import top.continew.admin.generator.model.query.ProvinceLeadersQuery;
import top.continew.admin.generator.model.resp.ProvinceLeadersDetailResp;
import top.continew.admin.generator.model.resp.ProvinceLeadersResp;
import top.continew.starter.data.mp.base.BaseMapper;
import top.continew.admin.generator.model.entity.ProvinceLeadersDO;

/**
* 省区负责人 Mapper
*
* @author jiangjun
* @since 2025/06/24 10:40
*/
public interface ProvinceLeadersMapper extends BaseMapper<ProvinceLeadersDO> {
    
    /**
     * 分页查询省区负责人列表（包含认证状态）
     */
    IPage<ProvinceLeadersResp> selectPageWithAuth(@Param("page") Page<ProvinceLeadersDO> page, @Param("query") ProvinceLeadersQuery query);
    
    /**
     * 根据ID查询省区负责人详情（包含认证状态）
     */
    ProvinceLeadersDetailResp selectByIdWithAuth(@Param("id") Long id);
}